import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import Form from './views/roles/Form.vue'
//参数字典
import Parame from './views/pages/sys/ParameterDictionary'
// 菜单项配置
import Menu from './views/pages/sys/MenuItemConfiguration'
// 角色项配置
import roles from './views/pages/sys/RoleConfiguration'
// 代理商配置
import Agent from './views/pages/sys/Agent'
//管理员列表
import Admin from './views/pages/sys/UserManagement'
// 用户列表
import UserList from './views/pages/sys/UserList'
// 城市合伙人
import Citypartner from './views/pages/sys/citypartner'
// 吉柚小课堂
import Room from './views/pages/sys/classroom'
// 交易价格
import Price from './views/pages/sys/price'
// 视频管理
import Review from './views/pages/sys/VideoReview'

let routes = [{
		path: '/login',
		component: Login,
		name: '',
		hidden: true
	},
	{
		path: '/404',
		component: NotFound,
		name: '',
		hidden: true
	},
	{
		path: '/form',
		component: Form,
		name: '',
		hidden: true
	},
	{
		path: '/',
		component: Home,
		name: '列表',
		iconCls: 'el-icon-s-tools', //图标样式class
		children: [{
				path: '/main',
				component: Main,
				name: '主页',
				hidden: true
			},
			{
				path: '/sys/ParameterDictionary',
				component: Parame,
				name: '参数字典'
			},
			{
				path: '/sys/MenuItemConfiguration',
				component: Menu,
				name: '菜单项配置'
			},
			{
				path: '/sys/RoleConfiguration',
				component: roles,
				name: '角色配置'
			},
			{
				path: '/sys/Agent',
				component: Agent,
				name: '代理商'
			},
			{
				path: '/sys/UserManagement',
				component: Admin,
				name: '后台用户管理'
			},
			{
				path: '/sys/UserList',
				component: UserList,
				name: '会员列表'
			},
			{
				path: '/sys/citypartner',
				component: Citypartner,
				name: '城市合伙人列表'
			},
			{
				path: '/sys/classroom',
				component: Room,
				name: '吉柚课堂'
			},
			{
				path: '/sys/price',
				component: Price,
				name: '交易价格'
			},
			{
				path: '/sys/VideoReview',
				component: Review,
				name: '视频审核'
			},
		]
	},
	{
		path: '*',
		hidden: true,
		redirect: {
			path: '/404'
		}
	}
];

export default routes;
